<!DOCTYPE html>
<!-- saved from url=(0088)http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen -->
<html itemscope="" itemtype="http://schema.org/QAPage"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>c# - WPF RibbonWindow + Ribbon = Title outside screen? - Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico?v=4f32ecc8f43d">
    <link rel="apple-touch-icon image_src" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="http://stackoverflow.com/opensearch.xml">
    <meta name="twitter:card" content="summary">
    <meta name="twitter:domain" content="stackoverflow.com">
    <meta property="og:type" content="website">    
    <meta property="og:image" itemprop="image primaryImageOfPage" content="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded&amp;a">
    <meta name="twitter:title" property="og:title" itemprop="title name" content="WPF RibbonWindow + Ribbon = Title outside screen?">
    <meta name="twitter:description" property="og:description" itemprop="description" content="I&#39;m trying out Ribbon control in combination with RibbonWindow, however they fail even in trivial experiments.


Created new WPF Application
Changed code to example from MSDN
Added reference to ">
    <meta property="og:url" content="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen">
    <link rel="canonical" href="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow.htm">

    
    
    <script async="" src="http://edge.quantserve.com/quant.js"></script><script async="" src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/beacon.js"></script><script async="" src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/analytics.js"></script><script type="text/javascript" async="" src="http://static.adzerk.net/ados.js"></script><script src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/jquery.min.js"></script>
    <script src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/stub.en.js"></script>
    <link rel="stylesheet" type="text/css" href="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/all.css">

            <link rel="alternate" type="application/atom+xml" title="Feed for question &#39;WPF RibbonWindow + Ribbon = Title outside screen?&#39;" href="http://stackoverflow.com/feeds/question/12567455">
            <meta name="twitter:app:country" content="US">
            <meta name="twitter:app:name:iphone" content="Stack Exchange iOS">
            <meta name="twitter:app:id:iphone" content="871299723">
            <meta name="twitter:app:url:iphone" content="se-zaphod://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen">
            <meta name="twitter:app:name:ipad" content="Stack Exchange iOS">
            <meta name="twitter:app:id:ipad" content="871299723">
            <meta name="twitter:app:url:ipad" content="se-zaphod://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen">
            <meta name="twitter:app:name:googleplay" content="Stack Exchange Android">
            <meta name="twitter:app:url:googleplay" content="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen">
            <meta name="twitter:app:id:googleplay" content="com.stackexchange.marvin">
        <script>
        
            StackExchange.ready(function () {
                    
                    StackExchange.using("snippets", function () {
                        StackExchange.snippets.initSnippetRenderer();
                    });
                    

                StackExchange.using("postValidation", function () {
                    StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer');
                });

                
                StackExchange.question.init({showAnswerHelp:true,totalCommentCount:1,shownCommentCount:1,highlightColor:'#F4A83D',backgroundColor:'#FFF',questionId:12567455});

                styleCode();

                    StackExchange.realtime.subscribeToQuestion('1', '12567455');
                                                                    StackExchange.using("gps", function () { StackExchange.gps.trackOutboundClicks('#content', '.post-text'); });

            });
        </script>


    <script>
        StackExchange.init({"locale":"en","stackAuthUrl":"https://stackauth.com","serverTime":1451886528,"networkMetaHostname":"meta.stackexchange.com","routeName":"Questions/Show","styleCode":true,"enableUserHovercards":true,"snippets":{"enabled":true,"domain":"stacksnippets.net"},"site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"recaptchaPublicKey":"6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc","recaptchaAudioLang":"en","enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"id":1,"enableSocialMediaInSharePopup":true},"user":{"fkey":"9f2eb3c970ed95f01af905d7f726632f","rep":0,"isAnonymous":true,"isAnonymousNetworkWide":true}});
        StackExchange.using.setCacheBreakers({"js/prettify-full.en.js":"b4b0f816915d","js/moderator.en.js":"24ee4d052056","js/full-anon.en.js":"ca9e4c20f45e","js/full.en.js":"dff24dde26e5","js/wmd.en.js":"4574813c85e9","js/third-party/jquery.autocomplete.min.js":"e5f01e97f7c3","js/third-party/jquery.autocomplete.min.en.js":"","js/mobile.en.js":"f58acd4f09d3","js/help.en.js":"f58b9bbdda52","js/tageditor.en.js":"d8e432fb71e1","js/tageditornew.en.js":"2d175c84fae2","js/inline-tag-editing.en.js":"c8fe23f81191","js/revisions.en.js":"6aca57a6c709","js/review.en.js":"92fa671d1f2d","js/tagsuggestions.en.js":"d1ff9b84abe5","js/post-validation.en.js":"cf44cdb385a0","js/explore-qlist.en.js":"e71f14781288","js/events.en.js":"8359322651ec","js/keyboard-shortcuts.en.js":"377ffe700806","js/external-editor.en.js":"9a0466fa50cc","js/external-editor.en.js":"9a0466fa50cc","js/snippet-javascript.en.js":"f590e314ee2d","js/snippet-javascript-codemirror.en.js":"dfb00ea36d73"});
        StackExchange.using("gps", function() {
             StackExchange.gps.init(true);
        });
    </script>
    
        <script>
            StackExchange.ready(function () {
                $('#nav-tour').click(function () {
                    StackExchange.using("gps", function() {
                        StackExchange.gps.track("aboutpage.click", { aboutclick_location: "headermain" }, true);
                    });
                });
            });
        </script>
    
    
</head>
<body class="question-page new-topbar"><div id="noscript-padding"></div>
    <noscript>&lt;div id="noscript-padding"&gt;&lt;/div&gt;</noscript>
    




    <div id="notify-container"></div>
    <div id="overlay-header"></div>
    <div id="custom-header"></div>





<div class="topbar">
    <div class="topbar-wrapper">

        <div class="js-topbar-dialog-corral">


<div class="topbar-dialog siteSwitcher-dialog dno">
    <div class="header">
        <h3><a href="http://stackoverflow.com/">current community</a></h3>
    </div>
    <div class="modal-content current-site-container">
        <ul class="current-site">
                <li>
                        <div class="related-links">
                    <a href="http://chat.stackoverflow.com/" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:6 })">chat</a>
            </div>




    <a href="http://stackoverflow.com/" class="current-site-link site-link js-gps-track" data-id="1" data-gps-track="
        site_switcher.click({ item_type:3 })">
        <div class="site-icon favicon favicon-stackoverflow" title="Stack Overflow"></div>
        Stack Overflow
    </a>

                </li>
                <li class="related-site">
                        <div class="L-shaped-icon-container">
        <span class="L-shaped-icon"></span>
    </div>

                    



    <a href="http://meta.stackoverflow.com/" class="site-link js-gps-track" data-id="552" data-gps-track="
            site.switch({ target_site:552, item_type:3 }),
        site_switcher.click({ item_type:4 })">
        <div class="site-icon favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div>
        Meta Stack Overflow
    </a>

                </li>
                            <li class="related-site">
                        <div class="L-shaped-icon-container">
        <span class="L-shaped-icon"></span>
    </div>

                    <a class="site-link js-gps-track" href="http://careers.stackoverflow.com/?utm_source=stackoverflow.com&utm_medium=site-ui&utm_campaign=multicollider" data-gps-track="site_switcher.click({ item_type:9 })">
                        <div class="site-icon favicon favicon-careers" title="Stack Overflow Careers"></div>
                        Stack Overflow Careers
                    </a>
                </li>
        </ul>
    </div>
    
    <div class="header" id="your-communities-header">
        <h3>
your communities        </h3>
            
    </div>
    <div class="modal-content" id="your-communities-section">
            
            <div class="call-to-login">
<a href="https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })">Sign up</a> or <a href="https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })">log in</a> to customize your list.
            </div>
    </div>
    
    <div class="header">
        <h3><a href="http://stackexchange.com/sites">more stack exchange communities</a></h3>
        <a href="http://blog.stackoverflow.com/" class="fr">company blog</a>
    </div>
    <div class="modal-content">
            <div class="child-content"></div>
    </div>
</div>
        </div>

        <div class="network-items">

            <a href="http://stackexchange.com/" class="topbar-icon icon-site-switcher yes-hover js-site-switcher-button js-gps-track" data-gps-track="site_switcher.show" title="A list of all 151 Stack Exchange sites">
                <span class="hidden-text">Stack Exchange</span>
            </a>

    <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" class="topbar-icon icon-inbox yes-hover js-inbox-button" title="Recent inbox messages">
        <span class="hidden-text">Inbox</span>
        <span class="unread-count" style="display:none"></span>
    </a>
    <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" class="topbar-icon icon-achievements yes-hover js-achievements-button " data-unread-class="" title="Recent achievements: reputation, badges, and privileges earned">
        <span class="hidden-text">Reputation and Badges</span>
        <span class="unread-count" style="display:none">
            
        </span>
    </a>
        </div>

        <div class="topbar-links">

                <div class="links-container">
                <span class="topbar-menu-links">
                                    <a href="https://stackoverflow.com/users/signup?ssrc=head&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen" class="login-link">sign up</a>
                                <a href="https://stackoverflow.com/users/login?ssrc=head&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen" class="login-link">log in</a>

                        <a href="http://stackoverflow.com/tour">tour</a>
                            <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" class="icon-help js-help-button" title="Help Center and other resources">
        help
        <span class="triangle"></span>
    </a>
    <div class="topbar-dialog help-dialog js-help-dialog dno">
        <div class="modal-content">
            <ul>
                                    <li>
                        <a href="http://stackoverflow.com/tour" class="js-gps-track" data-gps-track="help_popup.click({ item_type:1 })">
                            Tour
                            <span class="item-summary">
                                Start here for a quick overview of the site
                            </span>
                        </a>
                    </li>
                <li>
                    <a href="http://stackoverflow.com/help" class="js-gps-track" data-gps-track="help_popup.click({ item_type:4 })">
                        Help Center
                        <span class="item-summary">
                            Detailed answers to any questions you might have
                        </span>
                    </a>
                </li>
                    <li>
                        <a href="http://meta.stackoverflow.com/" class="js-gps-track" data-gps-track="help_popup.click({ item_type:2 })">
                            Meta
                            <span class="item-summary">
                                Discuss the workings and policies of this site
                            </span>
                        </a>
                    </li>
            </ul>
        </div>
    </div>

                    </span>
                </div>

            <div class="search-container">
                <form id="search" action="http://stackoverflow.com/search" method="get" autocomplete="off">
                    <input name="q" type="text" placeholder="search" value="" tabindex="1" autocomplete="off" maxlength="240">
                </form>
            </div>

        </div>
    </div>
</div>
    <script>
        StackExchange.ready(function() { StackExchange.topbar.init(); });
    </script>

    <div class="container">
        <div id="header">
            <br class="cbt">
            <div id="hlogo">
                <a href="http://stackoverflow.com/">
                    Stack Overflow
                </a>
            </div>
            <div id="hmenus">
                <div class="nav mainnavs">
                    <ul>
                        <li class="youarehere"><a id="nav-questions" href="http://stackoverflow.com/questions">Questions</a></li>
                            <li><a id="nav-jobs" href="http://stackoverflow.com/jobs">Jobs<span class="nav-jobs-beta">beta</span></a></li>
                        <li><a id="nav-tags" href="http://stackoverflow.com/tags">Tags</a></li>
                        <li><a id="nav-users" href="http://stackoverflow.com/users">Users</a></li>
                        <li><a id="nav-badges" href="http://stackoverflow.com/help/badges">Badges</a></li>
                                            </ul>
                </div>
                <div class="nav askquestion">
                    <ul>
                        <li>
                            <a id="nav-askquestion" href="http://stackoverflow.com/questions/ask">Ask Question</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        



        <div id="content" class="snippet-hidden">
            

<div itemscope="" itemtype="http://schema.org/Question">
    <link itemprop="image" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a">
                <!--googleoff: all-->

<div id="herobox-mini">
    <div id="hero-content">
        <span id="controls">
                <a href="http://stackoverflow.com/users/signup?ssrc=hero&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen" id="tell-me-more" class="button">Sign up</a>
            <span id="close"><a title="click to dismiss">×</a></span>
        </span>
        <div id="blurb">
            Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:
        </div>        
    </div>
    <script>
        StackExchange.ready(function() {
            var clickSource = $("body").attr("class") + '-mini';
            var location = 0;
            if ($("body").hasClass("questions-page")) {
                clickSource = 'questionpagemini';
                location = 2;
            } else if ($("body").hasClass("question-page")) {
                clickSource = 'questionpagemini';
                location = 2;
            } else if ($("body").hasClass("home-page")) {
                clickSource = 'homepagemini';
                location = 4;
            }

            $('#tell-me-more').click(function () {
                StackExchange.using("gps", function () {
                    StackExchange.gps.track("hero.action", { hero_action_type: 'cta', location: location }, true);
                });
            });
            $('#herobox-mini #close').click(function () {
                StackExchange.using("gps", function () {
                    StackExchange.gps.track("hero.action", { hero_action_type: "close", location: location }, true);
                });
                $.cookie("hero", "none", { path: "/", expires: 365 });
                var $hero = $("#herobox-mini");
                $hero.slideUp('fast', function () { $hero.remove(); });
                return false;
            });
        });
    </script>
</div>
                <!--googleon: all-->
			<div id="question-header">
                <h1 itemprop="name"><a href="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow.htm" class="question-hyperlink">WPF RibbonWindow + Ribbon = Title outside screen?</a></h1>
		</div>
			<div id="mainbar">

			

<div class="question" data-questionid="12567455" id="question">

    <script>
                var ados = ados || {}; ados.run = ados.run || [];
                ados.run.push(function () { ados_add_placement(22,8277,"adzerk381780985",4).setZone(43); });
            </script>
            <div class="everyonelovesstackoverflow" id="adzerk381780985">
            </div>    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="12567455">
        <a class="vote-up-off" title="This question shows research effort; it is useful and clear">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">16</span>
        <a class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful">down vote</a>

        <a class="star-off" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" title="This is a favorite question (click again to undo)">favorite</a>
        <div class="favoritecount"><b>8</b></div>


</div>

            </td>
            
<td class="postcell">
<div>
    <div class="post-text" itemprop="text">

<p>I'm trying out <code>Ribbon</code> control in combination with <code>RibbonWindow</code>, however they fail even in trivial experiments.</p>

<ol>
<li>Created new <em>WPF Application</em></li>
<li>Changed code to <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.ribbon.ribbon.aspx">example from MSDN</a></li>
<li>Added reference to <code>System.Windows.Controls.Ribbon</code> and got rid of <code>ribbon:</code> prefix (why are examples outdated?).</li>
<li>Added two icons (16x16 and 32x32).</li>
<li>Executed the application and saw this (Notepad for reference):</li>
</ol>

<p><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/rEFfC.png" alt=""></p>

<p>I can already see numerous problems:</p>

<ol>
<li>Border is tiny. A normal window has a big border, WPF Ribbon app has tiny. The title height is smaller too.</li>
<li>Border is blurry. When a normal window is focused, it's border is black. WPF app's border is greyish (black can be seen in corners; something is drawn over the borders?).</li>
<li>Application icon is misplaced. It's glued to the top-left corner.</li>
<li>Application title is misplaced. It's glued to the top.</li>
</ol>

<p>Let's move the toolbar to the bottom. Now we see this:</p>

<p><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/CCIBz.png" alt=""></p>

<p>Buttons are outside of the toolbar.</p>

<p>And finally, let's maximize the window:</p>

<p><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/YF98f.png" alt=""></p>

<p>Half of the header disappeared outside of the screen (technically window <em>is</em> outside of the screen by 8 pixels on every side, but other apps aren't confused by this).</p>

<p>I'm using Windows 7, Aero, single monitor, nothing special. I'm afraid to test the application on Windows 8...</p>

<p>Any chance to fix this?</p>
    </div>
    <div class="post-taglist">
        <a href="http://stackoverflow.com/questions/tagged/c%23" class="post-tag" title="show questions tagged &#39;c#&#39;" rel="tag">c#</a> <a href="http://stackoverflow.com/questions/tagged/.net" class="post-tag" title="show questions tagged &#39;.net&#39;" rel="tag">.net</a> <a href="http://stackoverflow.com/questions/tagged/wpf" class="post-tag" title="show questions tagged &#39;wpf&#39;" rel="tag">wpf</a> <a href="http://stackoverflow.com/questions/tagged/windows" class="post-tag" title="show questions tagged &#39;windows&#39;" rel="tag">windows</a> <a href="http://stackoverflow.com/questions/tagged/ribbon" class="post-tag" title="show questions tagged &#39;ribbon&#39;" rel="tag">ribbon</a> 
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/q/12567455" title="short permalink to this question" class="short-link" id="link-post-12567455">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/12567455/edit" class="suggest-edit-post" title="">improve this question</a></div>        
    </td>
    <td class="post-signature owner">
        <div class="user-info user-hover">
    <div class="user-action-time">
        asked <span title="2012-09-24 14:47:43Z" class="relativetime">Sep 24 '12 at 14:47</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/293099/discord"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/p6Q7m.png" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/293099/discord">Discord</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score 12953" dir="ltr">13k</span><span title="7 gold badges"><span class="badge1"></span><span class="badgecount">7</span></span><span title="43 silver badges"><span class="badge2"></span><span class="badgecount">43</span></span><span title="81 bronze badges"><span class="badge3"></span><span class="badgecount">81</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</div>
</td>
        </tr>
                
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-12567455" class="comments ">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">



    <tr id="comment-29039680" class="comment ">
        <td class="comment-actions">
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                <span title="number of &#39;useful comment&#39; votes received" class="cool">1</span>
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">Microsoft Bug: <a href="http://connect.microsoft.com/VisualStudio/feedback/details/775972/wpf-ribbon-window-the-border-is-too-thin" rel="nofollow">connect.microsoft.com/VisualStudio/feedback/details/775972/…</a></span>
                    –&nbsp;<a href="http://stackoverflow.com/users/103988/jbe" title="5253 reputation" class="comment-user">jbe</a>
                <span class="comment-date" dir="ltr"><span title="2013-10-24 14:20:57Z" class="relativetime-clean">Oct 24 '13 at 14:20</span></span>
                                                                            </div>
                    </td>
    </tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-12567455" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>        </tbody></table>
</div>

			<div id="answers">

				<a name="tab-top"></a>
				<div id="answers-header">
					<div class="subheader answers-subheader">
						<h2>
								6 Answers
                                <span style="display:none;" itemprop="answerCount">6</span>
						</h2>
						<div>
							<div id="tabs">
        <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen?answertab=active#tab-top" data-nav-xhref="" title="Answers with the latest activity first" data-value="active">
            active</a>
        <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen?answertab=oldest#tab-top" data-nav-xhref="" title="Answers in the order they were provided" data-value="oldest">
            oldest</a>
        <a class="youarehere" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen?answertab=votes#tab-top" data-nav-xhref="" title="Answers with the highest score first" data-value="votes">
            votes</a>
</div>
						</div>
					</div>    
				</div>    




  
<a name="12567883"></a>
<div id="answer-12567883" class="answer accepted-answer" data-answerid="12567883" itemscope="" itemtype="http://schema.org/Answer" itemprop="acceptedAnswer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="12567883">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">23</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>



        <span class="vote-accepted-on load-accepted-answer-date" title="loading when this answer was accepted...">accepted</span>

</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<h2>The real problem</h2>

<p>Under the hood, the <a href="http://msdn.microsoft.com/en-us/library/system.windows.shell.windowchrome.aspx"><code>WindowChrome</code></a> class binds its <code>ResizeBorderThickness</code> to <code>SystemParameters.WindowResizeBorderThickness</code> which in turns uses the Win32 API <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385.aspx"><code>GetSystemMetrics</code></a> to determine the system border size.</p>

<p>However, the behavior of this method changes depending of the subsystem version set in the executable PE header. If compiled only for Windows Vista and later (version &gt;= 6.0), it will return thinner borders than if compiled for older operating systems. <a href="http://stackoverflow.com/a/11707312/183367">More information on this in this SO answer.</a></p>

<p>When compiling against .NET 4.5, the C# compiler sets this version to 6.0 since .NET 4.5 cannot be used on XP. However, the <code>WindowChrome</code> class seems to rely on the legacy behavior and thus fails to calculate the glass size correctly on Windows Vista and 7.</p>

<h2>Solutions</h2>

<h3>Use .NET 4</h3>

<p>You can compile against .NET 4 to force the compiler to use 4.0 as its subsystem version value. The ribbon is available for WPF 4 as a <a href="http://www.microsoft.com/en-us/download/details.aspx?id=11877">separate download</a>. Note that even with this solution, you should uncheck "Enable the Visual Studio hosting process" in the project properties for debugging purposes. Otherwise, the vshost.exe process will be used, which is flagged with a subsystem version of 6.0.</p>

<h3>Change the subsystem version</h3>

<p><strong>Edit:</strong> Olly provided a way to do this in the comments:</p>

<blockquote>
  <p>Add a property in the project file
  <code>&lt;subsystemversion&gt;5.01&lt;/subsystemversion&gt;</code> that falsely indicates that
  the code can run on Windows XP.</p>
</blockquote>

<h3>Ignore the system</h3>

<p>You can change the <code>WindowChrome.WindowChrome</code> attached property on your window and use the values that you want, thus completely ignoring the system values. You should never do that, but you can.</p>

<h3>Fill a bug</h3>

<p>There is an existing bug on Connect about the <a href="http://connect.microsoft.com/VisualStudio/feedback/details/753224/regression-getsystemmetrics-delivers-different-values">change in behavior of <code>GetSystemMetrics</code></a> but it all comes down to the subsystem version so it's rather a feature from a Microsoft view point. However, the <code>WindowChrome</code> class should really be fixed to work correctly under Vista/7, especially since it's now built in .NET 4.5.</p>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/12567883" title="short permalink to this answer" class="short-link" id="link-post-12567883">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/12567883/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
    <td align="right" class="post-signature">
<div class="user-info ">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/12567883/revisions" title="show all edits to this post">edited <span title="2013-03-28 08:26:08Z" class="relativetime">Mar 28 '13 at 8:26</span></a>
    </div>
    <div class="user-gravatar32">
        
    </div>
    <div class="user-details">
        
        <div class="-flair">
            
        </div>
    </div>
</div>    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info user-hover">
    <div class="user-action-time">
        answered <span title="2012-09-24 15:12:04Z" class="relativetime">Sep 24 '12 at 15:12</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/183367/julien-lebosquain"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/dfc0bdcb4525f87e5dbd731a23240862" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/183367/julien-lebosquain">Julien Lebosquain</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score 25729" dir="ltr">25.7k</span><span title="5 gold badges"><span class="badge1"></span><span class="badgecount">5</span></span><span title="65 silver badges"><span class="badge2"></span><span class="badgecount">65</span></span><span title="85 bronze badges"><span class="badge3"></span><span class="badgecount">85</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-12567883" class="comments ">
		    <table>
                <tbody data-remaining-comments-count="1" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">



    <tr id="comment-16939137" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">Thank you, but that's too much trouble to use just one control. Using old framework is obviously not an option. Switching to old system will probably cause all kinds of troubles (considering I plan to use features of Vista/7). Guessing system settings will cause troubles with different OS versions. Hoping Microsoft will fix a bug soon is just plain silly, based on my experience (it took years to fix URL parsing...). I'm trying out Fluent Ribbon, and so far, it works much better (it does have bugs, but at least basic functionality JUST WORKS). Arrgghh!</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/293099/discord" title="12953 reputation" class="comment-user owner">Discord</a>
                <span class="comment-date" dir="ltr"><span title="2012-09-24 21:10:12Z" class="relativetime-clean">Sep 24 '12 at 21:10</span></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-16939553" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">This should work fine if you take the WindowChrome instance that the Ribbon is using and change the ResizeBorderThickness to the correct values. It doesn't have to be hardcoded, instead you can just get the appropriate system metrics. I don't know for sure what the default Ribbon template is using for everything, so it may require a couple other properties to be changed.  That said, if you're happy with the Fluent version then that works too :)</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/535328/joe-castro" title="1380 reputation" class="comment-user">Joe Castro</a>
                <span class="comment-date" dir="ltr"><span title="2012-09-24 21:29:56Z" class="relativetime-clean">Sep 24 '12 at 21:29</span></span>
                    <span class="edited-yes" title="this comment was edited 1 time"></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-22224254" class="comment ">
        <td class="comment-actions">
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                <span title="number of &#39;useful comment&#39; votes received" class="cool">4</span>
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">For C# you can set the compiler /subsystemversion switch. (<a href="http://msdn.microsoft.com/en-us/library/vstudio/hh965708.aspx" rel="nofollow">msdn.microsoft.com/en-us/library/vstudio/hh965708.aspx</a>) I add a property in the project file &lt;subsystemversion&gt;5.01&lt;/subsystemversion&gt; that falsely indicates that the code can run on Windows XP. The shim is then used, and the ribbon window looks OK.</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/439024/olly" title="3983 reputation" class="comment-user">Olly</a>
                <span class="comment-date" dir="ltr"><span title="2013-03-27 13:18:45Z" class="relativetime-clean">Mar 27 '13 at 13:18</span></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-22254868" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">@Olly that's really great! Edited my answer with that, seems perfect.</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/183367/julien-lebosquain" title="25729 reputation" class="comment-user">Julien Lebosquain</a>
                <span class="comment-date" dir="ltr"><span title="2013-03-28 08:27:03Z" class="relativetime-clean">Mar 28 '13 at 8:27</span></span>
                                                                            </div>
                    </td>
    </tr>
    <tr id="comment-22749176" class="comment ">
        <td class="comment-actions">
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                <span title="number of &#39;useful comment&#39; votes received" class="warm">5</span>
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">Anyone tried this with VS2012 Update2 ? Neither &lt;SubsystemVersion&gt;5.01&lt;/SubsystemVersion&gt; nor changing any property on WindowChrome seem to have any effect.</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/443422/marcin-wisnicki" title="1660 reputation" class="comment-user">Marcin Wisnicki</a>
                <span class="comment-date" dir="ltr"><span title="2013-04-12 01:53:48Z" class="relativetime-clean">Apr 12 '13 at 1:53</span></span>
                                                                            </div>
                    </td>
    </tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-12567883" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link  dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”."></a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link " title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick="">show <b>1</b> more comment</a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>
<script>
                var ados = ados || {}; ados.run = ados.run || [];
                ados.run.push(function () { ados_add_placement(22,8277,"adzerk198089497",4).setZone(44); });
            </script>
            <div class="everyonelovesstackoverflow" id="adzerk198089497">
            </div>
  
<a name="12573219"></a>
<div id="answer-12573219" class="answer" data-answerid="12573219" itemscope="" itemtype="http://schema.org/Answer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="12573219">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">4</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>




</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<p>For anyone who reads this question, I'm answering it myself. Forget about the horrible bundled ribbon control and use something else. Look for some of the alternatives here: <a href="http://stackoverflow.com/questions/474104/what-is-the-best-wpf-ribbon-control-suite">What is the Best WPF Ribbon Control Suite?</a> (like all good questions, it's closed though).</p>

<p>So far, <a href="http://fluent.codeplex.com/" rel="nofollow">Fluent Ribbon Control Suite</a> looks like the best free option to me. Basic functionality just works (no problems with borders and maximizing, resising window isn't slow as hell etc.). It has Office styles and preserves them if glass is disabled (that means you won't see Windows9x-ish window in Metro). Its interface (backstage, QAT) is more like Office 2010.</p>

<p>Maybe in some distant future, Microsoft will fix its Ribbon, but for now, look for alternatives.</p>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/12573219" title="short permalink to this answer" class="short-link" id="link-post-12573219">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/12573219/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
    <td align="right" class="post-signature">
<div class="user-info ">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/12573219/revisions" title="show all edits to this post">edited <span title="2012-09-25 10:24:35Z" class="relativetime">Sep 25 '12 at 10:24</span></a>
    </div>
    <div class="user-gravatar32">
        
    </div>
    <div class="user-details">
        
        <div class="-flair">
            
        </div>
    </div>
</div>    </td>
            


    <td align="right" class="post-signature owner">   
       

    <div class="user-info user-hover">
    <div class="user-action-time">
        answered <span title="2012-09-24 21:31:45Z" class="relativetime">Sep 24 '12 at 21:31</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/293099/discord"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/p6Q7m.png" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/293099/discord">Discord</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score 12953" dir="ltr">13k</span><span title="7 gold badges"><span class="badge1"></span><span class="badgecount">7</span></span><span title="43 silver badges"><span class="badge2"></span><span class="badgecount">43</span></span><span title="81 bronze badges"><span class="badge3"></span><span class="badgecount">81</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-12573219" class="comments  dno">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">

                        <tr><td></td><td></td></tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-12573219" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>

  
<a name="27730148"></a>
<div id="answer-27730148" class="answer" data-answerid="27730148" itemscope="" itemtype="http://schema.org/Answer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="27730148">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">4</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>




</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<p>Here is another WorkAround, very easy and simple way.
Simply add a negative margin at the toolbar. 
You need to keep the original Window Class and not the RibbonWindow !</p>

<pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Application Name" Height="350" Width="525" Loaded="Window_Loaded" SizeChanged="Window_SizeChanged"&gt;
</code></pre>

<p>Just add this margin to the Ribbon Title</p>

<pre><code>&lt;Ribbon Title="" Foreground="#333333" Margin="0,-22,0,0"&gt;
</code></pre>

<p>Now when you maximize the window, everything stay right</p>

<p><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/zChwMI1.png" alt=""></p>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/27730148" title="short permalink to this answer" class="short-link" id="link-post-27730148">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/27730148/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
    <td align="right" class="post-signature">
<div class="user-info user-hover">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/27730148/revisions" title="show all edits to this post">edited <span title="2015-01-01 17:53:26Z" class="relativetime">Jan 1 '15 at 17:53</span></a>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/293099/discord"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/p6Q7m.png" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/293099/discord">Discord</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score 12953" dir="ltr">13k</span><span title="7 gold badges"><span class="badge1"></span><span class="badgecount">7</span></span><span title="43 silver badges"><span class="badge2"></span><span class="badgecount">43</span></span><span title="81 bronze badges"><span class="badge3"></span><span class="badgecount">81</span></span>
        </div>
    </div>
</div>    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2015-01-01 10:57:35Z" class="relativetime">Jan 1 '15 at 10:57</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/3297263/yannick-kcinnay"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/3d14f6d93b7bee0fd174b64a668fe944" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/3297263/yannick-kcinnay">Yannick KcinnaY</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score " dir="ltr">51</span><span title="4 bronze badges"><span class="badge3"></span><span class="badgecount">4</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-27730148" class="comments ">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">



    <tr id="comment-51420270" class="comment ">
        <td>
            <table>
                <tbody>
                    <tr>
                        <td class=" comment-score">
                                &nbsp;&nbsp;
                        </td>
                        <td>
                                &nbsp;
                        </td>
                    </tr>
                </tbody>
            </table>
        </td>
        <td class="comment-text">
            <div style="display: block;" class="comment-body">
                <span class="comment-copy">This workaround is the best for me, that is if you do not need special Ribbon buttons on the titlebar.</span>
                    –&nbsp;<a href="http://stackoverflow.com/users/265196/vladimir" title="174 reputation" class="comment-user">Vladimir</a>
                <span class="comment-date" dir="ltr"><span title="2015-07-31 09:59:36Z" class="relativetime-clean">Jul 31 '15 at 9:59</span></span>
                                                                            </div>
                    </td>
    </tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-27730148" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>

  
<a name="28043787"></a>
<div id="answer-28043787" class="answer" data-answerid="28043787" itemscope="" itemtype="http://schema.org/Answer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="28043787">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">1</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>




</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<p>I had the same Problem with the title in the RibbonWindow. I solved it by setting the global style of the TextBlock within the RibbonTitlePanel.</p>

<pre><code>    &lt;Style TargetType="{x:Type TextBlock}"&gt; 
    &lt;Style.Triggers&gt;
        &lt;MultiDataTrigger&gt;
            &lt;MultiDataTrigger.Conditions&gt;
                &lt;Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type primitives:RibbonTitlePanel}},Path=Visibility}" Value="Visible"&gt;&lt;/Condition&gt;
                &lt;Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type RibbonWindow}},Path=WindowState}" Value="Maximized"&gt;&lt;/Condition&gt;
            &lt;/MultiDataTrigger.Conditions&gt;
            &lt;MultiDataTrigger.Setters&gt;
                &lt;Setter Property="VerticalAlignment" Value="Center"&gt;&lt;/Setter&gt;
            &lt;/MultiDataTrigger.Setters&gt;
        &lt;/MultiDataTrigger&gt;
    &lt;/Style.Triggers&gt;
&lt;/Style&gt;
</code></pre>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/28043787" title="short permalink to this answer" class="short-link" id="link-post-28043787">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/28043787/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2015-01-20 11:06:55Z" class="relativetime">Jan 20 '15 at 11:06</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/3774669/user3774669"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/730e3196843a62815ed25267dcbec635" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/3774669/user3774669">user3774669</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score " dir="ltr">61</span><span title="3 bronze badges"><span class="badge3"></span><span class="badgecount">3</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-28043787" class="comments  dno">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">

                        <tr><td></td><td></td></tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-28043787" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>

  
<a name="14959351"></a>
<div id="answer-14959351" class="answer" data-answerid="14959351" itemscope="" itemtype="http://schema.org/Answer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="14959351">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">0</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>




</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<p>This is not a solution, perhaps not even a work around, but rather a poorly hack, that I hope to only use for a short time until the problem is fixed in the framework.</p>

<p>Code is mainly copy+paste from this question <a href="http://stackoverflow.com/a/8082816/44726">http://stackoverflow.com/a/8082816/44726</a></p>

<p>I've changed the allowed screen position, which seems to help the problem, not fix it.</p>

<p>Call is like this in the code behind</p>

<pre><code>        InitializeComponent();
        RibbonWindowService.FixMaximizedWindowTitle(this);
</code></pre>

<p><br></p>

<pre><code>public static class RibbonWindowService
{
    public static void FixMaximizedWindowTitle(Window window)
    {
        window.SourceInitialized += WinSourceInitialized;
    }

    [DllImport("user32")]
    internal static extern bool GetMonitorInfo(IntPtr hMonitor, MONITORINFO lpmi);

    [DllImport("User32")]
    internal static extern IntPtr MonitorFromWindow(IntPtr handle, int flags);

    private static IntPtr WindowProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
    {
        switch (msg)
        {
            case 0x0024:
                WmGetMinMaxInfo(hwnd, lParam);
                handled = true;
                break;
        }

        return (IntPtr)0;
    }

    private static void WmGetMinMaxInfo(IntPtr hwnd, IntPtr lParam)
    {
        MINMAXINFO mmi = (MINMAXINFO)Marshal.PtrToStructure(lParam, typeof(MINMAXINFO));

        // Adjust the maximized size and position to fit the work area of the correct monitor
        int MONITOR_DEFAULTTONEAREST = 0x00000002;
        IntPtr monitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST);

        if (monitor != IntPtr.Zero)
        {
            MONITORINFO monitorInfo = new MONITORINFO();
            GetMonitorInfo(monitor, monitorInfo);
            RECT rcWorkArea = monitorInfo.rcWork;
            RECT rcMonitorArea = monitorInfo.rcMonitor;

            // Offset top and left 1 pixel improves the situation
            rcMonitorArea.top += 1;
            rcMonitorArea.left += 1;

            mmi.ptMaxPosition.x = Math.Abs(rcWorkArea.left - rcMonitorArea.left);
            mmi.ptMaxPosition.y = Math.Abs(rcWorkArea.top - rcMonitorArea.top);
            mmi.ptMaxSize.x = Math.Abs(rcWorkArea.right - rcWorkArea.left);
            mmi.ptMaxSize.y = Math.Abs(rcWorkArea.bottom - rcWorkArea.top);
        }

        Marshal.StructureToPtr(mmi, lParam, true);
    }

    private static void WinSourceInitialized(object sender, EventArgs e)
    {
        IntPtr handle = (new WinInterop.WindowInteropHelper((Window)sender)).Handle;
        WinInterop.HwndSource.FromHwnd(handle).AddHook(WindowProc);
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct MINMAXINFO
    {
        public POINT ptReserved;
        public POINT ptMaxSize;
        public POINT ptMaxPosition;
        public POINT ptMinTrackSize;
        public POINT ptMaxTrackSize;
    };

    [StructLayout(LayoutKind.Sequential)]
    public struct POINT
    {
        /// &lt;summary&gt;
        /// x coordinate of point.
        /// &lt;/summary&gt;
        public int x;

        /// &lt;summary&gt;
        /// y coordinate of point.
        /// &lt;/summary&gt;
        public int y;

        /// &lt;summary&gt;
        /// Construct a point of coordinates (x,y).
        /// &lt;/summary&gt;
        public POINT(int x, int y)
        {
            this.x = x;
            this.y = y;
        }
    }

    [StructLayout(LayoutKind.Sequential, Pack = 0)]
    public struct RECT
    {
        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int left;

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int top;

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int right;

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int bottom;

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public static readonly RECT Empty = new RECT();

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int Width
        {
            get { return Math.Abs(right - left); } // Abs needed for BIDI OS
        }

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public int Height
        {
            get { return bottom - top; }
        }

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public RECT(int left, int top, int right, int bottom)
        {
            this.left = left;
            this.top = top;
            this.right = right;
            this.bottom = bottom;
        }

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public RECT(RECT rcSrc)
        {
            left = rcSrc.left;
            top = rcSrc.top;
            right = rcSrc.right;
            bottom = rcSrc.bottom;
        }

        /// &lt;summary&gt; Win32 &lt;/summary&gt;
        public bool IsEmpty
        {
            get
            {
                // BUGBUG : On Bidi OS (hebrew arabic) left &gt; right
                return left &gt;= right || top &gt;= bottom;
            }
        }

        /// &lt;summary&gt; Return a user friendly representation of this struct &lt;/summary&gt;
        public override string ToString()
        {
            if (this == Empty)
            {
                return "RECT {Empty}";
            }
            return "RECT { left : " + left + " / top : " + top + " / right : " + right + " / bottom : " + bottom + " }";
        }

        /// &lt;summary&gt; Determine if 2 RECT are equal (deep compare) &lt;/summary&gt;
        public override bool Equals(object obj)
        {
            if (!(obj is Rect))
            {
                return false;
            }
            return (this == (RECT)obj);
        }

        /// &lt;summary&gt;Return the HashCode for this struct (not garanteed to be unique)&lt;/summary&gt;
        public override int GetHashCode()
        {
            return left.GetHashCode() + top.GetHashCode() + right.GetHashCode() + bottom.GetHashCode();
        }

        /// &lt;summary&gt; Determine if 2 RECT are equal (deep compare)&lt;/summary&gt;
        public static bool operator ==(RECT rect1, RECT rect2)
        {
            return (rect1.left == rect2.left &amp;&amp; rect1.top == rect2.top &amp;&amp; rect1.right == rect2.right &amp;&amp; rect1.bottom == rect2.bottom);
        }

        /// &lt;summary&gt; Determine if 2 RECT are different(deep compare)&lt;/summary&gt;
        public static bool operator !=(RECT rect1, RECT rect2)
        {
            return !(rect1 == rect2);
        }
    }

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public class MONITORINFO
    {
        /// &lt;summary&gt;
        /// &lt;/summary&gt;            
        public int cbSize = Marshal.SizeOf(typeof(MONITORINFO));

        /// &lt;summary&gt;
        /// &lt;/summary&gt;            
        public RECT rcMonitor = new RECT();

        /// &lt;summary&gt;
        /// &lt;/summary&gt;            
        public RECT rcWork = new RECT();

        /// &lt;summary&gt;
        /// &lt;/summary&gt;            
        public int dwFlags = 0;
    }
}
</code></pre>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/14959351" title="short permalink to this answer" class="short-link" id="link-post-14959351">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/14959351/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2013-02-19 14:00:34Z" class="relativetime">Feb 19 '13 at 14:00</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/44726/karsten"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/091de904a902de67d782a30c5ebb277f" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/44726/karsten">Karsten</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score " dir="ltr">2,833</span><span title="6 gold badges"><span class="badge1"></span><span class="badgecount">6</span></span><span title="28 silver badges"><span class="badge2"></span><span class="badgecount">28</span></span><span title="63 bronze badges"><span class="badge3"></span><span class="badgecount">63</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-14959351" class="comments  dno">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">

                        <tr><td></td><td></td></tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-14959351" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>

  
<a name="27726295"></a>
<div id="answer-27726295" class="answer" data-answerid="27726295" itemscope="" itemtype="http://schema.org/Answer">
    <table>
        <tbody><tr>
            <td class="votecell">
                

<div class="vote">
        <input type="hidden" name="_id_" value="27726295">
        <a class="vote-up-off" title="This answer is useful">up vote</a>
        <span itemprop="upvoteCount" class="vote-count-post ">0</span>
        <a class="vote-down-off" title="This answer is not useful">down vote</a>




</div>

            </td>
            


<td class="answercell">
    <div class="post-text" itemprop="text">
<p>Here is my workaround solution. I use the <code>SizeChanged</code> event to detect the maximized state, after that I create margin for the main grid.</p>

<pre><code>private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
{
    Thickness m = GridMain.Margin;

    if (WindowState == WindowState.Maximized)
    {
        m.Left = 3;
        m.Bottom = 3;
        m.Left = 3;
    }
    else
    {
        m.Left = 0;
        m.Bottom = 0;
        m.Left = 0;
    }
    GridMain.Margin = m;
}
</code></pre>
    </div>
    <table class="fw">
    <tbody><tr>
    <td class="vt">
<div class="post-menu"><a href="http://stackoverflow.com/a/27726295" title="short permalink to this answer" class="short-link" id="link-post-27726295">share</a><span class="lsep">|</span><a href="http://stackoverflow.com/posts/27726295/edit" class="suggest-edit-post" title="">improve this answer</a></div>                    </td>
    <td align="right" class="post-signature">
<div class="user-info user-hover">
    <div class="user-action-time">
        <a href="http://stackoverflow.com/posts/27726295/revisions" title="show all edits to this post">edited <span title="2015-01-01 01:31:49Z" class="relativetime">Jan 1 '15 at 1:31</span></a>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/293099/discord"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/p6Q7m.png" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/293099/discord">Discord</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score 12953" dir="ltr">13k</span><span title="7 gold badges"><span class="badge1"></span><span class="badgecount">7</span></span><span title="43 silver badges"><span class="badge2"></span><span class="badgecount">43</span></span><span title="81 bronze badges"><span class="badge3"></span><span class="badgecount">81</span></span>
        </div>
    </div>
</div>    </td>
            


    <td align="right" class="post-signature">   
       

    <div class="user-info ">
    <div class="user-action-time">
        answered <span title="2014-12-31 21:03:14Z" class="relativetime">Dec 31 '14 at 21:03</span>
    </div>
    <div class="user-gravatar32">
        <a href="http://stackoverflow.com/users/3297263/yannick-kcinnay"><div class="gravatar-wrapper-32"><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/3d14f6d93b7bee0fd174b64a668fe944" alt="" width="32" height="32"></div></a>
    </div>
    <div class="user-details">
        <a href="http://stackoverflow.com/users/3297263/yannick-kcinnay">Yannick KcinnaY</a>
        <div class="-flair">
            <span class="reputation-score" title="reputation score " dir="ltr">51</span><span title="4 bronze badges"><span class="badge3"></span><span class="badgecount">4</span></span>
        </div>
    </div>
</div>
    </td>
    </tr>
    </tbody></table>
</td>
        </tr>
            
<tr>
    <td class="votecell"></td>
    <td>
	    <div id="comments-27726295" class="comments  dno">
		    <table>
                <tbody data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">

                        <tr><td></td><td></td></tr>
                </tbody>
		    </table>
	    </div>

        <div id="comments-link-27726295" data-rep="50" data-anon="true">

                <a class="js-add-link comments-link disabled-link " title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.">add a comment</a><span class="js-link-separator dno">&nbsp;|&nbsp;</span>
            <a class="js-show-link comments-link dno" title="expand to show all comments on this post" href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" onclick=""></a>
        </div>         
    </td>
</tr>    </tbody></table>
</div>
									<a name="new-answer"></a>
						<form id="post-form" action="http://stackoverflow.com/questions/12567455/answer/submit" method="post" class="post-form">
						    <input type="hidden" id="post-id" value="12567455">
                            <input type="hidden" id="qualityBanWarningShown" name="qualityBanWarningShown" value="false">
                            <input type="hidden" name="referrer" value="http://cn.bing.com/search?q=wpf+ribbon+title+maxsize&amp;go=%E6%8F%90%E4%BA%A4&amp;qs=n&amp;form=QBLH&amp;pq=wpf+ribbon+title+maxsize&amp;sc=0-17&amp;sp=-1&amp;sk=&amp;cvid=C763F45603CA4FCFB6770FF5F520F0FF">
							<h2 class="space">Your Answer</h2>


            <script>
            StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                    StackExchange.using("snippets", function () {
                        StackExchange.snippets.init();
                    });
                });
            }, "code-snippets");
        </script>
    

<script>
    StackExchange.ready(function() {
        initTagRenderer("".split(" "), "".split(" "));
       
        StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.options.snippets.enabled) {
                    StackExchange.using("snippets", function() {
                        createEditor();
                    });
                }
                else {
                    createEditor();
                }
            });

            function createEditor() {
                prepareEditor({
                    heartbeatType: 'answer',
                convertImagesToLinks: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    });
                

        }
    });  
</script>


<div id="post-editor" class="post-editor js-post-editor">

    <div style="position: relative;">     
        <div class="wmd-container">
            <div id="wmd-button-bar" class="wmd-button-bar"></div>
            <textarea id="wmd-input" class="wmd-input" name="post-text" cols="92" rows="15" tabindex="101" data-min-length=""></textarea>
        </div>
    </div>

    <div class="fl" style="margin-top: 8px; height:24px;">&nbsp;</div>
    <div id="draft-saved" class="draft-saved community-option fl" style="margin-top: 8px; height:24px; display:none;">draft saved</div>

    <div id="draft-discarded" class="draft-discarded community-option fl" style="margin-top: 8px; height:24px; display:none;">draft discarded</div>



    <div id="wmd-preview" class="wmd-preview"></div>
    <div></div>
    <div class="edit-block">
        <input id="fkey" name="fkey" type="hidden" value="9f2eb3c970ed95f01af905d7f726632f">
        <input id="author" name="author" type="text">
    </div>



</div>
							<div style="position: relative;">
								
								            <div class="form-item dno new-post-login">
        
                <div class="new-login-form">
                    <div class="new-login-left">
                        <h3>Sign up or <a id="login-link" href="http://stackoverflow.com/users/login?ssrc=question_page&returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen%23new-answer">log in</a></h3>
                        <script>
                            StackExchange.ready(function () {
                                StackExchange.helpers.onClickDraftSave('#login-link');
                            });
                        </script>
                        <div class="preferred-login google-login">
                            <p><span class="icon"></span><span>Sign up using Google</span></p>
                        </div>
                        <div class="preferred-login facebook-login">
                            <p><span class="icon"></span><span>Sign up using Facebook</span></p>
                        </div>
                        <div class="preferred-login stackexchange-login">
                            <p><span class="icon"></span><span>Sign up using Email and Password</span></p>
                        </div>
                    </div>
                    <input type="hidden" name="manual-openid" class="manual-openid">
                    <input type="hidden" name="use-facebook" class="use-facebook" value="false">
                    <input type="hidden" name="use-google" class="use-google" value="false">
                    <input type="button" class="submit-openid" value="Submit" style="display:none">
                    <div class="new-login-right">
                                <h3>Post as a guest</h3>
    <div class="form-item">
        <table>
        <tbody><tr>
                    <td class="vm">
                <div>
                    <label for="display-name">Name</label>
                    <input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105">
                </div>
                <div>
                    <label for="m-address">Email</label>
                    <input id="m-address" name="m-address" type="email" size="30" maxlength="100" value="" tabindex="106" placeholder="required, but never shown">
                </div>
            </td>
        </tr>
        </tbody></table>
    </div>

                    </div>
                </div>
            </div>
            <script>
                StackExchange.ready(
                    function () {
                        StackExchange.openid.initPostLogin('.new-post-login', 'http%3a%2f%2fstackoverflow.com%2fquestions%2f12567455%2fwpf-ribbonwindow-ribbon-title-outside-screen%23new-answer', 'question_page');
                    }
                );
            </script>
            <noscript>
                        &lt;h3&gt;Post as a guest&lt;/h3&gt;
    &lt;div class="form-item"&gt;
        &lt;table&gt;
        &lt;tr&gt;
                    &lt;td class="vm"&gt;
                &lt;div&gt;
                    &lt;label for="display-name"&gt;Name&lt;/label&gt;
                    &lt;input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105"&gt;
                &lt;/div&gt;
                &lt;div&gt;
                    &lt;label for="m-address"&gt;Email&lt;/label&gt;
                    &lt;input id="m-address" name="m-address" type="email" size="30" maxlength="100" value="" tabindex="106" placeholder="required, but never shown" /&gt;
                &lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/div&gt;

            </noscript>

							</div>
           
															<div class="form-submit cbt">
									<input id="submit-button" type="submit" value="Post Your Answer" tabindex="110">
									<a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" class="discard-answer dno">discard</a>

<p class="privacy-policy-agreement">
By posting your answer, you agree to the <a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and <a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.</p>
<input type="hidden" name="legalLinksShown" value="1">								</div>
						</form>



						<h2 class="bottom-notice" data-loc="1">
Not the answer you're looking for?							Browse other questions tagged <a href="http://stackoverflow.com/questions/tagged/c%23" class="post-tag" title="show questions tagged &#39;c#&#39;" rel="tag">c#</a> <a href="http://stackoverflow.com/questions/tagged/.net" class="post-tag" title="show questions tagged &#39;.net&#39;" rel="tag">.net</a> <a href="http://stackoverflow.com/questions/tagged/wpf" class="post-tag" title="show questions tagged &#39;wpf&#39;" rel="tag">wpf</a> <a href="http://stackoverflow.com/questions/tagged/windows" class="post-tag" title="show questions tagged &#39;windows&#39;" rel="tag">windows</a> <a href="http://stackoverflow.com/questions/tagged/ribbon" class="post-tag" title="show questions tagged &#39;ribbon&#39;" rel="tag">ribbon</a>  or <a href="http://stackoverflow.com/questions/ask">ask your own question</a>.						</h2>
			</div>
		</div>
				<div id="sidebar" class="show-votes">
						    <div class="module question-stats">
			        <table id="qinfo">
			            <tbody><tr>
			                <td>
			                    <p class="label-key">asked</p>
			                </td>
			                <td style="padding-left: 10px">
			                    <p class="label-key" title="2012-09-24 14:47:43Z"><b>3 years ago</b></p>
			                </td>
			            </tr>
			            <tr>
			                <td>
			                    <p class="label-key">viewed</p>
			                </td>

			                <td style="padding-left: 10px">
			                    <p class="label-key">
			                        <b>10869 times</b>
			                    </p>
			                </td>
			            </tr>
			                <tr>
			                    <td>
			                        <p class="label-key">active</p>
			                    </td>
			                    <td style="padding-left: 10px">
			                        <p class="label-key"><b><a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen?lastactivity" class="lastactivity-link" title="2015-01-20 11:06:55Z">11 months ago</a></b></p>
			                    </td>
			                </tr>
			        </tbody></table>
			    </div>
						
			<script>
                var ados = ados || {}; ados.run = ados.run || [];
                ados.run.push(function () { ados_add_placement(22,8277,"adzerk1009738913",[17,2221]).setZone(45); });
            </script>
            
        <div id="hireme">
            <script>
;var _extends=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n};(function(n){function f(){return(new Date).getTime()}function rt(n,t){return n.split(/\&/g).reduce(function(n,t){var i=t.split("=");return n[v(i[0])]=v(i[1]),n},t||{})}function ut(n,t){return Object.keys(n).filter(function(n){return t.indexOf(n)!==-1}).map(function(t){return u(t)+"="+u(n[t])}).join("&")}function y(n){return i.querySelectorAll(n)}function r(n){return i.querySelector(n)}function p(n,t,r){var u=i.createElement("script"),e="onreadystatechange",o="onload",f="readyState",s=!1;u.async=!0;u.src=n;typeof t=="function"&&(u[o]=u[e]=function(){s||u[f]&&u[f]!=="loaded"&&u[f]!=="complete"||(s=!0,typeof t=="function"&&t(u),u[o]=u[e]=null,r&&u.parentNode.removeChild(u))});nt.appendChild(u)}function w(n){var t=i.createElement("link");t.type="text/css";t.rel="stylesheet";t.href=n;tt.appendChild(t)}function ft(){return[].map.call(y(".post-taglist .post-tag"),function(n){return n.innerText}).join(";")||null}function et(){var n=t.StackExchange,i="options",r="user";return n&&n[i]&&n[i][r]&&n[i][r].accountId}function ot(n){var t,i;return n=rt(s.hash?s.hash.substr(1):"",n||{}),t=n.ac||n.accountId||et(),t&&(n.ac=t),n.tags||(i=ft(),i&&(n.tags=i)),n}function b(n){return n.innerHTML.replace(/\s+$/g,"")}function st(n,t,i,u){var c=r(n);if(c===null)return function(){};var h=null,s=null,l=f(),a=function a(){b(c)?(o(h),u(!1,f()-l)):s=e(a,t)};return s=e(a,t),i&&(h=e(function(){o(s);u(!0,f()-l)},i)),function(){o(s);o(h)}}function ht(){var t="careers1",i="careers3",u=!d()||r("#careersadsdoublehigh"),f=u?1:2,n=[f+"=hireme"];return r("#"+t)&&n.push("5="+t),r("#"+i)&&n.push("6="+i),n.join("&")}function k(n,i){var r=ot(_extends({},g,{zones:ht()})),u,e;n&&(r.azt=1);i&&(r.lw=i);typeof t.innerWidth=="number"&&(r.bw=t.innerWidth);u=["zones","ip","ac","eng","prov","tags","theme","at","remote","seed","lw","azt","sysadmin","bw","nocpm"];e=l+"?"+ut(r,u);c=f();p(e)}function ct(n){function h(){u.forEach(w);e.forEach(function(n){lt(n,i[n],s,o)});typeof t.clc_after_load=="function"&&t.clc_after_load()}var i=n.cr,r=n.h,u=n.st,e=Object.keys(i),o=c?f()-c:0,s="//"+r+"/ct";h()}function lt(n,t,i,f){var h=t.cl,c=t.cn,o=t.an,l=t.utm,s=(h||[]).join(" "),e=r("#"+n);e&&(s&&(e.className+=" "+s),e.innerHTML=c.replace("&pt=0","&pt="+(f||0)),e.onmousedown=function(n){for(var t=n.target,r,f,s;t.tagName!=="A"&&t!==e;)t=t.parentNode;t!==e&&(r=[],o&&r.push("an="+o),f=[].filter.call(t.attributes,function(n){return/^data-/.test(n.name)}),f.length>0&&f.forEach(function(n){var t=n.name.replace(/^data-/,"");r.push(u(t)+"="+u(n.value))}),r.push("utm="+u(it+l)),s="",r.length>0&&(s="?"+r.join("&")),t.href=i+s)})}function d(){return y(h).length>0}function at(n){var t=i.createElement("a");return t.href=n,t.host}function vt(){var t,n;d()?(n=st(h,20,t,function(n,t){k(n,t)}),e(function(){var u=r(h),t;b(u)||(u.parentNode.removeChild(u),typeof n=="function"&&n(),t=i.createElement("img"),t.src="//"+at(l)+"/to.gif",t.style.display="none",i.body.appendChild(t))},2e3)):k()}var l=n.u,a=n.o,g=a===undefined?{}:a,t=window,s=t.location,u=t.encodeURIComponent,v=t.decodeURIComponent,i=t.document,nt=i.body,tt=i.getElementsByTagName("head")[0],e=t.setTimeout,o=t.clearTimeout,it="&utm_source="+s.hostname+"&utm_medium=ad&utm_campaign=",h="#sidebar [id^=adzerk].everyonelovesstackoverflow",c=0;t.clc={init:ct,load:vt,ls:p,as:w}}).call(null, {"u":"//clc.stackoverflow.com/p.js"});var allowedHosts=["stackoverflow.com","serverfault.com"];(allowedHosts[0]==="*"||allowedHosts.indexOf(location.hostname)!==-1)&&window.clc.load();            </script>
        </div>
			<div style="margin-bottom: 10px;">
        

<style type="text/css">
#newsletter-ad {
    width: 190px;
    height: 250px;
    overflow: hidden;
    background: url('//cdn.sstatic.net/stackoverflow/img/newsletter-ad.png?v=2');
    padding: 0 15px 0 15px;
}
#newsletter-ad-header {
    margin-top: 60px;
}
#newsletter-ad ul {
    margin: 1em 0 1em 1.5em;
}
#newsletter-ad ul li {
    margin-bottom: 5px;
}
#newsletter-signup-container {
    text-align: center;
}
#newsletter-preview-container {
    margin-top: 10px;
    text-align: center;
}
#newsletter-email-input {
    width: 200px;
}
</style>

<script>
    StackExchange.ready(function () {
        StackExchange.newsletterAd.init();
    });
</script>

<div id="newsletter-ad">
    <p id="newsletter-ad-header">Get the <b>weekly newsletter!</b></p>
    <ul>
        <li>Top questions and answers</li>
        <li>Important announcements</li>
        <li>Unanswered questions</li>
    </ul>
    <div id="newsletter-signup-container"><input id="newsletter-signup" type="button" value="Sign up for the newsletter"></div>
    <p id="newsletter-preview-container">see an <a href="http://stackexchange.com/newsletters/newsletter?site=stackoverflow.com" id="newsletter-preview">example newsletter</a></p>
    <div class="dno">
        
<p class="privacy-policy-agreement">
By subscribing, you agree to the <a href="http://stackexchange.com/legal/privacy-policy" target="_blank">privacy policy</a> and <a href="http://stackexchange.com/legal/terms-of-service" target="_blank">terms of service</a>.</p>
<input type="hidden" name="legalLinksShown" value="1">
    </div>
</div>

    </div>  
    
            <div class="module sidebar-linked">
	<h4 id="h-linked">Linked</h4>
	<div class="linked" data-tracker="lq=1">
<div class="spacer">
	<a href="http://stackoverflow.com/q/474104" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes  default">24</div>
	</a>
	<a href="http://stackoverflow.com/questions/474104/what-is-the-best-wpf-ribbon-control-suite" class="question-hyperlink">What is the Best WPF Ribbon Control Suite?</a>
</div><div class="spacer">
	<a href="http://stackoverflow.com/q/6890472" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes answered-accepted default">9</div>
	</a>
	<a href="http://stackoverflow.com/questions/6890472/wpf-maximize-window-with-windowstate-problem-application-will-hide-windows-ta" class="question-hyperlink">WPF : Maximize window with WindowState Problem (application will hide windows taskbar)</a>
</div><div class="spacer">
	<a href="http://stackoverflow.com/q/11706269" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes answered-accepted default">4</div>
	</a>
	<a href="http://stackoverflow.com/questions/11706269/why-does-getsystemmetrics-return-these-values" class="question-hyperlink">Why does GetSystemMetrics() return these values?</a>
</div><div class="spacer">
	<a href="http://stackoverflow.com/q/12796374" title="Vote score (upvotes - downvotes)">
		<div class="answer-votes  default">7</div>
	</a>
	<a href="http://stackoverflow.com/questions/12796374/wpf-ribbon-maximized-window-going-off-screen" class="question-hyperlink">WPF Ribbon: Maximized window going off screen</a>
</div>			</div>
</div>

				<div class="module sidebar-related">
					<h4 id="h-related">Related</h4>
                    <div class="related js-gps-related-questions" data-tracker="rq=1">
                        <div class="spacer">
<a href="http://stackoverflow.com/q/2016020" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">1
    </div>
</a><a href="http://stackoverflow.com/questions/2016020/wpf-ribbon-control-ribboncontextualtabgroup-hiding-title" class="question-hyperlink">WPF ribbon control: RibbonContextualTabGroup hiding title</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/2989735" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">9
    </div>
</a><a href="http://stackoverflow.com/questions/2989735/vertical-separator-in-wpf-ribbon" class="question-hyperlink">Vertical separator in WPF Ribbon</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/5252796" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">6
    </div>
</a><a href="http://stackoverflow.com/questions/5252796/wpf-ribbon-collapse-and-expand-programatically" class="question-hyperlink">WPF Ribbon collapse and expand programatically</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/6032032" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">22
    </div>
</a><a href="http://stackoverflow.com/questions/6032032/how-do-i-compute-the-non-client-window-size-in-wpf" class="question-hyperlink">How do I compute the non-client window size in WPF?</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/12517835" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">1
    </div>
</a><a href="http://stackoverflow.com/questions/12517835/wpf-ribbon-menu-tab-permanently-visible" class="question-hyperlink">WPF Ribbon Menu tab permanently visible</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/12796374" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">7
    </div>
</a><a href="http://stackoverflow.com/questions/12796374/wpf-ribbon-maximized-window-going-off-screen" class="question-hyperlink">WPF Ribbon: Maximized window going off screen</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/12959412" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes answered-accepted default">1
    </div>
</a><a href="http://stackoverflow.com/questions/12959412/how-can-i-center-the-title-of-a-wpf-ribbonwindow" class="question-hyperlink">How can I center the title of a WPF RibbonWindow?</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/16893964" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">3
    </div>
</a><a href="http://stackoverflow.com/questions/16893964/replacing-microsoftribbonforwpf-with-net-4-5-integrated-ribbon" class="question-hyperlink">Replacing MicrosoftRibbonForWPF with .NET 4.5 integrated Ribbon</a>
</div>
<div class="spacer">
<a href="http://stackoverflow.com/q/20962440" title="Vote score (upvotes - downvotes)">
    <div class="answer-votes default">1
    </div>
</a><a href="http://stackoverflow.com/questions/20962440/per-monitor-dpi-aware-wpf-application-versus-ribbonwindow" class="question-hyperlink">Per-Monitor DPI-Aware WPF Application versus RibbonWindow</a>
</div>

                    </div>
				</div>
            
<div id="hot-network-questions" class="module">
    <h4>
        <a href="http://stackexchange.com/questions?tab=hot" class="js-gps-track" data-gps-track="posts_hot_network.click({ item_type:1, location:11 })">
            Hot Network Questions
        </a>
    </h4>
    <ul>
            <li>
                <div class="favicon favicon-superuser" title="Super User"></div><a href="http://superuser.com/questions/1019825/why-are-pixels-square" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:3 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Why are pixels square?
                </a>

            </li>
            <li>
                <div class="favicon favicon-aviation" title="Aviation Stack Exchange"></div><a href="http://aviation.stackexchange.com/questions/24114/why-does-rudder-cause-roll" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:528 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Why does rudder cause roll?
                </a>

            </li>
            <li>
                <div class="favicon favicon-worldbuilding" title="Worldbuilding Stack Exchange"></div><a href="http://worldbuilding.stackexchange.com/questions/32536/could-two-stars-of-equivalent-mass-size-form-a-binary-system-and-be-different-co" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:579 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Could two stars of equivalent mass/size form a binary system and be different colors?
                </a>

            </li>
            <li>
                <div class="favicon favicon-travel" title="Travel Stack Exchange"></div><a href="http://travel.stackexchange.com/questions/60738/can-i-see-fireworks-from-a-passenger-airplane-at-cruising-altitude" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:273 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Can I see fireworks from a passenger airplane (at cruising altitude)?
                </a>

            </li>
            <li>
                <div class="favicon favicon-scifi" title="Science Fiction &amp; Fantasy Stack Exchange"></div><a href="http://scifi.stackexchange.com/questions/113301/why-was-fn-2187-working-in-sanitation" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Why was FN-2187 working in sanitation?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-codegolf" title="Programming Puzzles &amp; Code Golf Stack Exchange"></div><a href="http://codegolf.stackexchange.com/questions/68468/hotel-room-numbering" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:200 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Hotel room numbering
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-gis" title="Geographic Information Systems Stack Exchange"></div><a href="http://gis.stackexchange.com/questions/175454/are-pdal-or-pcl-capable-of-producing-lidar-grid-metrics" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:79 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Are PDAL or PCL capable of producing LiDAR grid metrics?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-codegolf" title="Programming Puzzles &amp; Code Golf Stack Exchange"></div><a href="http://codegolf.stackexchange.com/questions/68391/please-count-me" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:200 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Please Count ME!
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-mechanics" title="Motor Vehicle Maintenance &amp; Repair Stack Exchange"></div><a href="http://mechanics.stackexchange.com/questions/24136/when-does-it-make-sense-to-replace-a-camshaft" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:224 }); posts_hot_network.click({ item_type:2, location:11 })">
                    When does it make sense to replace a camshaft?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-italian" title="Italian Language Stack Exchange"></div><a href="http://italian.stackexchange.com/questions/6410/qual-%c3%a8-il-significato-di-portare-in-questo-contesto" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:524 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Qual è il significato di "portare" in questo contesto?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="http://academia.stackexchange.com/questions/61038/what-does-an-optimal-grading-distribution-look-like" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })">
                    What does an optimal grading distribution look like?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="http://mathoverflow.net/questions/227568/equality-of-expressions-for-sum" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })">
                    equality of expressions for sum
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/285798/how-and-when-is-the-aux-file-read-and-processed" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:85 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How and when is the "aux" file read and processed?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-math" title="Mathematics Stack Exchange"></div><a href="http://math.stackexchange.com/questions/1598280/is-collapsing-considered-a-legitimate-proof" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:69 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is collapsing considered a legitimate proof?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-money" title="Personal Finance &amp; Money Stack Exchange"></div><a href="http://money.stackexchange.com/questions/57686/is-it-worth-investing-in-401k-if-a-company-doesnt-do-matching" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:93 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Is it worth investing in 401(k) if a company doesn't do matching?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="http://mathoverflow.net/questions/227589/index-of-a-family-of-operators" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Index of a family of operators
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-chess" title="Chess Stack Exchange"></div><a href="http://chess.stackexchange.com/questions/13290/how-much-time-you-spend-on-one-puzzle" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:435 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How much time you spend on one puzzle?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/285823/multi-substring-replace" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:85 }); posts_hot_network.click({ item_type:2, location:11 })">
                    Multi-substring replace
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="http://academia.stackexchange.com/questions/60972/how-to-reduce-negative-consequence-for-the-person-i-plagiarized-my-assignment-fr" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How to reduce negative consequence for the person I plagiarized my assignment from?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/285757/how-to-graph-piece-wise-function-fx-x-for-lx%e2%89%a40-0-otherwise" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:85 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How to graph piece wise function. f(x)={-x for -l&lt;x≤0 &amp; 0 otherwise}
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-askubuntu" title="Ask Ubuntu"></div><a href="http://askubuntu.com/questions/716419/how-can-i-force-sudo-to-always-ask-for-a-password-after-waking-from-suspend" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:89 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How can I force sudo to always ask for a password after waking from suspend?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-woodworking" title="Woodworking Stack Exchange"></div><a href="http://woodworking.stackexchange.com/questions/3110/what-kind-of-a-hand-saw-guide-is-being-used-in-this-video" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:603 }); posts_hot_network.click({ item_type:2, location:11 })">
                    What kind of a hand saw guide is being used in this video?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-opensource" title="Open Source Stack Exchange"></div><a href="http://opensource.stackexchange.com/questions/2254/how-to-contribute-to-open-source-as-a-non-programmer" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:619 }); posts_hot_network.click({ item_type:2, location:11 })">
                    How to contribute to Open Source as a non-programmer?
                </a>

            </li>
            <li class="dno js-hidden">
                <div class="favicon favicon-scifi" title="Science Fiction &amp; Fantasy Stack Exchange"></div><a href="http://scifi.stackexchange.com/questions/113314/in-asimovs-robot-story-liar-why-does-dr-calvin-show-no-mercy-for-herbie" class="js-gps-track" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })">
                    In Asimov's robot story "Liar!", why does Dr. Calvin show no mercy for Herbie?
                </a>

            </li>
    </ul>

        <a href="http://stackoverflow.com/questions/12567455/wpf-ribbonwindow-ribbon-title-outside-screen#" class="show-more js-show-more js-gps-track" data-gps-track="posts_hot_network.click({ item_type:3, location:11 })">
            more hot questions
        </a>
</div>
		</div>
	
<div id="feed-link">
    <div id="feed-link-text">
        <a href="http://stackoverflow.com/feeds/question/12567455" title="feed of this question and its answers">
            <span class="feed-icon"></span>question feed
        </a>
    </div>
</div>	<script>
StackExchange.ready(function(){$.get('/posts/12567455/ivc/3b71');});
</script>
<noscript>
    &lt;div&gt;&lt;img src="/posts/12567455/ivc/3b71" class="dno" alt="" width="0" height="0"&gt;&lt;/div&gt;
</noscript><div style="display:none" id="prettify-lang">lang-cs</div></div>


        </div>
    </div>
    <div id="footer" class="categories">
        <div class="footerwrap">
            <div id="footer-menu">
                <div class="top-footer-links">
                        <a href="http://stackoverflow.com/tour">tour</a>
                    <a href="http://stackoverflow.com/help">help</a>
                    <a href="http://blog.stackoverflow.com/?blb=1">blog</a>
                        <a href="http://chat.stackoverflow.com/">chat</a>
                    <a href="http://data.stackexchange.com/">data</a>
                    <a href="http://stackexchange.com/legal">legal</a>
                    <a href="http://stackexchange.com/legal/privacy-policy">privacy policy</a>
                    <a href="http://stackexchange.com/work-here">work here</a>
                    <a href="http://stackexchange.com/mediakit">advertising info</a>

                    <a onclick="StackExchange.switchMobile(&quot;on&quot;)">mobile</a>
                    <b><a href="http://stackoverflow.com/contact">contact us</a></b>
                        <b><a href="http://meta.stackoverflow.com/">feedback</a></b>
                    
                </div>
                <div id="footer-sites">
                    <table>
    <tbody><tr>
            <th colspan="3">
                Technology
            </th>
            <th>
                Life / Arts
            </th>
            <th>
                Culture / Recreation
            </th>
            <th>
                Science
            </th>
            <th>
                Other
            </th>
    </tr>
    <tr>
            <td>
                <ol>
                        <li><a href="http://stackoverflow.com/" title="professional and enthusiast programmers">Stack Overflow</a></li>
                        <li><a href="http://serverfault.com/" title="system and network administrators">Server Fault</a></li>
                        <li><a href="http://superuser.com/" title="computer enthusiasts and power users">Super User</a></li>
                        <li><a href="http://webapps.stackexchange.com/" title="power users of web applications">Web Applications</a></li>
                        <li><a href="http://askubuntu.com/" title="Ubuntu users and developers">Ask Ubuntu</a></li>
                        <li><a href="http://webmasters.stackexchange.com/" title="pro webmasters">Webmasters</a></li>
                        <li><a href="http://gamedev.stackexchange.com/" title="professional and independent game developers">Game Development</a></li>
                        <li><a href="http://tex.stackexchange.com/" title="users of TeX, LaTeX, ConTeXt, and related typesetting systems">TeX - LaTeX</a></li>
                            </ol></td><td><ol>
                        <li><a href="http://programmers.stackexchange.com/" title="professional programmers interested in conceptual questions about software development">Programmers</a></li>
                        <li><a href="http://unix.stackexchange.com/" title="users of Linux, FreeBSD and other Un*x-like operating systems">Unix &amp; Linux</a></li>
                        <li><a href="http://apple.stackexchange.com/" title="power users of Apple hardware and software">Ask Different (Apple)</a></li>
                        <li><a href="http://wordpress.stackexchange.com/" title="WordPress developers and administrators">WordPress Development</a></li>
                        <li><a href="http://gis.stackexchange.com/" title="cartographers, geographers and GIS professionals">Geographic Information Systems</a></li>
                        <li><a href="http://electronics.stackexchange.com/" title="electronics and electrical engineering professionals, students, and enthusiasts">Electrical Engineering</a></li>
                        <li><a href="http://android.stackexchange.com/" title="enthusiasts and power users of the Android operating system">Android Enthusiasts</a></li>
                        <li><a href="http://security.stackexchange.com/" title="information security professionals">Information Security</a></li>
                            </ol></td><td><ol>
                        <li><a href="http://dba.stackexchange.com/" title="database professionals who wish to improve their database skills and learn from others in the community">Database Administrators</a></li>
                        <li><a href="http://drupal.stackexchange.com/" title="Drupal developers and administrators">Drupal Answers</a></li>
                        <li><a href="http://sharepoint.stackexchange.com/" title="SharePoint enthusiasts">SharePoint</a></li>
                        <li><a href="http://ux.stackexchange.com/" title="user experience researchers and experts">User Experience</a></li>
                        <li><a href="http://mathematica.stackexchange.com/" title="users of Mathematica">Mathematica</a></li>
                        <li><a href="http://salesforce.stackexchange.com/" title="Salesforce administrators, implementation experts, developers and anybody in-between">Salesforce</a></li>
                        <li><a href="http://expressionengine.stackexchange.com/" title="administrators, end users, developers and designers for ExpressionEngine® CMS">ExpressionEngine® Answers</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#technology" class="more">
                                more (13)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://photo.stackexchange.com/" title="professional, enthusiast and amateur photographers">Photography</a></li>
                        <li><a href="http://scifi.stackexchange.com/" title="science fiction and fantasy enthusiasts">Science Fiction &amp; Fantasy</a></li>
                        <li><a href="http://graphicdesign.stackexchange.com/" title="Graphic Design professionals, students, and enthusiasts">Graphic Design</a></li>
                        <li><a href="http://movies.stackexchange.com/" title="movie and tv enthusiasts">Movies &amp; TV</a></li>
                        <li><a href="http://cooking.stackexchange.com/" title="professional and amateur chefs">Seasoned Advice (cooking)</a></li>
                        <li><a href="http://diy.stackexchange.com/" title="contractors and serious DIYers">Home Improvement</a></li>
                        <li><a href="http://money.stackexchange.com/" title="people who want to be financially literate">Personal Finance &amp; Money</a></li>
                        <li><a href="http://academia.stackexchange.com/" title="academics and those enrolled in higher education">Academia</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#lifearts" class="more">
                                more (9)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://english.stackexchange.com/" title="linguists, etymologists, and serious English language enthusiasts">English Language &amp; Usage</a></li>
                        <li><a href="http://skeptics.stackexchange.com/" title="scientific skepticism">Skeptics</a></li>
                        <li><a href="http://judaism.stackexchange.com/" title="those who base their lives on Jewish law and tradition and anyone interested in learning more">Mi Yodeya (Judaism)</a></li>
                        <li><a href="http://travel.stackexchange.com/" title="road warriors and seasoned travelers">Travel</a></li>
                        <li><a href="http://christianity.stackexchange.com/" title="committed Christians, experts in Christianity and those interested in learning more">Christianity</a></li>
                        <li><a href="http://gaming.stackexchange.com/" title="passionate videogamers on all platforms">Arqade (gaming)</a></li>
                        <li><a href="http://bicycles.stackexchange.com/" title="people who build and repair bicycles, people who train cycling, or commute on bicycles">Bicycles</a></li>
                        <li><a href="http://rpg.stackexchange.com/" title="gamemasters and players of tabletop, paper-and-pencil role-playing games">Role-playing Games</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#culturerecreation" class="more">
                                more (21)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://math.stackexchange.com/" title="people studying math at any level and professionals in related fields">Mathematics</a></li>
                        <li><a href="http://stats.stackexchange.com/" title="people interested in statistics, machine learning, data analysis, data mining, and data visualization">Cross Validated (stats)</a></li>
                        <li><a href="http://cstheory.stackexchange.com/" title="theoretical computer scientists and researchers in related fields">Theoretical Computer Science</a></li>
                        <li><a href="http://physics.stackexchange.com/" title="active researchers, academics and students of physics">Physics</a></li>
                        <li><a href="http://mathoverflow.net/" title="professional mathematicians">MathOverflow</a></li>
                        <li><a href="http://chemistry.stackexchange.com/" title="scientists, academics, teachers and students">Chemistry</a></li>
                        <li><a href="http://biology.stackexchange.com/" title="biology researchers, academics, and students">Biology</a></li>
                    
                        <li>
                            <a href="http://stackexchange.com/sites#science" class="more">
                                more (5)
                            </a>
                        </li>
                </ol>
            </td>
            <td>
                <ol>
                        <li><a href="http://stackapps.com/" title="apps, scripts, and development with the Stack Exchange API">Stack Apps</a></li>
                        <li><a href="http://meta.stackexchange.com/" title="meta-discussion of the Stack Exchange family of Q&amp;A websites">Meta Stack Exchange</a></li>
                        <li><a href="http://area51.stackexchange.com/" title="proposing new sites in the Stack Exchange network">Area 51</a></li>
                        <li><a href="http://careers.stackoverflow.com/">Stack Overflow Careers</a></li>
                    
                </ol>
            </td>
    </tr>
</tbody></table>
                </div>
            </div>

            <div id="copyright">
                site design / logo © 2016 Stack Exchange Inc; user contributions licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">cc by-sa 3.0</a> 
                with <a href="http://blog.stackoverflow.com/2009/06/attribution-required/" rel="license">attribution required</a>
            </div>
            <div id="svnrev">
                rev 2016.1.1.3143
            </div>
            
        </div>
    </div>
    <noscript>
        &lt;div id="noscript-warning"&gt;Stack Overflow works best with JavaScript enabled&lt;img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"&gt;&lt;/div&gt;
    </noscript>
<script>var p = "http", d = "static"; if (document.location.protocol == "https:") { p += "s"; d = "engine"; } var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = p + "://" + d + ".adzerk.net/ados.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script>
<script>
    var ados = ados || {};
    ados.run = ados.run || [];
    ados.run.push(function () {
        ados_setKeywords('c%23,.net,wpf,windows,ribbon');; ados_load();
    });         
</script>

    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-5620270-1');
                        ga('set', 'dimension2', '|c#|.net|wpf|windows|ribbon|');         ga('send', 'pageview');
        var _qevents = _qevents || [],
            _comscore = _comscore || [];
        (function () {
            var ssl='https:'==document.location.protocol,
                s=document.getElementsByTagName('script')[0],
                qc=document.createElement('script');
            qc.async=true;
            qc.src=(ssl?'https://secure':'http://edge')+'.quantserve.com/quant.js';
            s.parentNode.insertBefore(qc, s);
            var sc=document.createElement('script');
            sc.async=true;
            sc.src=(ssl?'https://sb':'http://b') + '.scorecardresearch.com/beacon.js';
            s.parentNode.insertBefore(sc, s);
        })();
        _comscore.push({ c1: "2", c2: "17440561" });
        _qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
    </script>
            
    
<div id="noscript-warning">Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.</div><img src="./c# - WPF RibbonWindow + Ribbon = Title outside screen  - Stack Overflow_files/to.gif" style="display: none;"></body></html>